//
//  FreeManagerSelfFiveTableViewCell.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/8.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "FreeManagerSelfFiveTableViewCell.h"

@implementation FreeManagerSelfFiveTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        GLGWLabel *nameLab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        NSString *str = @"自由经理人权益";
        nameLab.text = str;
        [nameLab mas_updateConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kWidthProportion_In_iPhoneTriploid(17));
            make.bottom.equalTo(@(-kHeightProportion_In_iPhoneTriploid(207)));
        }];
        
        GLGWImageView *imV = [[GLGWImageView alloc] initWithImageName:@"" inSuperView:self.contentView];
        [imV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(nameLab.mas_left);
            make.top.equalTo(nameLab.mas_bottom).offset(kWidthProportion_In_iPhoneTriploid(11));
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(182)));
        }];
        imV.backgroundColor = kRandomColor;
    }
    return self;
}

@end
